(function() {
  'use strict';
  
  
  define(['app', 'services/StoreManager'], function(AMail) {
    AMail.controller('DetailController', ['$scope', '$routeParams', 'StoreManager', function($scope, $routeParams, StoreManager) {
      var messages = StoreManager.getItem('AMail');
      $scope.message = messages[$routeParams.id];
    }]);
  });
}).call(this);
